import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';

import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';


import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { DirectivesModule } from '../directives/directives.module';
import { Clipboard } from '@ionic-native/clipboard';
import { ShareProvider } from '../providers/share';
import { PipesModule } from '../pipes/pipes.module';
import { KeyBoardProvider } from '../providers/keyboard';



@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
  ],
  imports: [
    BrowserModule,
    DirectivesModule,
    PipesModule,
    IonicModule.forRoot(MyApp,{
      mode:"ios",
      tabsHideOnSubPages: 'true',  //隐藏全部子页面tabs
      backButtonText: '',
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    Clipboard,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    ShareProvider,
    KeyBoardProvider
  ]
})
export class AppModule {}
